package com.huahai.security.core.properties;

/**
 * @Author: Jun
 * @Date: 2020/7/19
 *
 * JWT属性类
 *
 * 主要是创建JWT Token时需要的参数
 */
public class JwtProperties {

    /**
     * jwt加密key
     */
    private String jwtSecret = SecurityConstants.DEFAULT_JWT_SECRET;

    /**
     * 前端访问服务时存放在Header中的token的key
     */
    private String jwtTokenHeader = SecurityConstants.DEFAULT_JWT_TOKEN_HEADER;

    /**
     * token过期时间
     */
    private long jwtTokenExpireIn = SecurityConstants.DEFAULT_JWT_TOKEN_EXPIREIN;

    /**
     * 返回token时加上的前缀
     */
    private String jwtTokenPrefix = SecurityConstants.DEFAULT_JWT_TOKEN_PREFIX;

    /**
     * token 类型
     */
    private String jwtTokenType = SecurityConstants.DEFAULT_JWT_TOKEN_TYPE;

    /**
     * token生成者
     */
    private String jwtTokenIssuer = SecurityConstants.DEFAULT_JWT_TOKEN_ISSUER;

    /**
     * token使用者
     */
    private String jwtTokenAudience = SecurityConstants.DEFAULT_JWT_TOKEN_AUDIENCE;

    public String getJwtSecret() {
        return jwtSecret;
    }

    public void setJwtSecret(String jwtSecret) {
        this.jwtSecret = jwtSecret;
    }

    public String getJwtTokenHeader() {
        return jwtTokenHeader;
    }

    public void setJwtTokenHeader(String jwtTokenHeader) {
        this.jwtTokenHeader = jwtTokenHeader;
    }

    public long getJwtTokenExpireIn() {
        return jwtTokenExpireIn;
    }

    public void setJwtTokenExpireIn(long jwtTokenExpireIn) {
        this.jwtTokenExpireIn = jwtTokenExpireIn;
    }

    public String getJwtTokenPrefix() {
        return jwtTokenPrefix;
    }

    public void setJwtTokenPrefix(String jwtTokenPrefix) {
        this.jwtTokenPrefix = jwtTokenPrefix;
    }

    public String getJwtTokenType() {
        return jwtTokenType;
    }

    public void setJwtTokenType(String jwtTokenType) {
        this.jwtTokenType = jwtTokenType;
    }

    public String getJwtTokenIssuer() {
        return jwtTokenIssuer;
    }

    public void setJwtTokenIssuer(String jwtTokenIssuer) {
        this.jwtTokenIssuer = jwtTokenIssuer;
    }

    public String getJwtTokenAudience() {
        return jwtTokenAudience;
    }

    public void setJwtTokenAudience(String jwtTokenAudience) {
        this.jwtTokenAudience = jwtTokenAudience;
    }
}
